package top.zsyle.system.mapper;

import org.apache.ibatis.annotations.Param;
import top.zsyle.system.domain.Menu;
import top.zsyle.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zsy
 * @since 2022-11-29
 */
public interface MenuMapper extends BaseMapper<Menu> {

    void addMiddle(@Param("roleId") Long id,@Param("menus") List<Long> menus);

    void deleteMiddleByRoleId(Long roleId);

    List<Menu> findAllByLogininfoId(Long id);
}
